package packets.client;

import java.io.Serializable;

/**
 * a data structure that stores a user's login information (id , name and password)
 * used to be sent in a packet 
 */
public class Login implements Serializable{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private int _id;
	private String _name;
	private String _password;

	/**
	 * Creates an instance of login
	 * @param id user's ID
	 * @param name user's name
	 * @param pw user's password (encrypted)
	 */
	public Login(int id ,String name , String pw){
		_id = id;
		_name = name;
		_password = pw;
	}

	/**
	 * 
	 * @return the user's name
	 */
	public String getName() {
		return _name;
	}

	/**
	 * 
	 * @return the user's password
	 */
	public String getPassword() {
		return _password;
	}

	/**
	 * 
	 * @return the user's ID
	 */
	public int getId(){
		return _id;
	}

}
